package ginc

import (
	"github.com/gin-gonic/gin"

	"gitee.com/familydoc/plugin/result"
)

func Ok(c *gin.Context, data interface{}, errs ...string) {
	c.JSON(200, result.Ok(data, errs...))
}

func Fail(c *gin.Context, errs ...string) {
	c.JSON(200, result.Fail(errs...))
}
